package com.itheima.classandobject;

/**
 * @Author 王加鑫
 * @Date 2021/4/26 10:36
 * @Version 1.0
 */
public class Phone {

    String brand;

    int price;

    public void call(String name1,String name2){
        System.out.println(name1 + "给" +name2 + "打电话");
    }


}

class PhoneTest{

    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.brand = "小米";
        phone.price = 1999;
        System.out.println(phone.brand);
        System.out.println(phone.price);
        phone.call("张三","李四");
    }

}
